<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>广场办数字化管理系统 - 登录</title>
    <link rel="stylesheet" type="text/css" href="${ctxStatic}/common/login.css" />
    <script type="text/javascript" src="${ctxStatic}/jquery/jquery-1.9.1.min.js"></script>
    <script type="text/javascript">
		// 如果在框架中，则跳转刷新上级页面
		if (self.frameElement && self.frameElement.tagName == "IFRAME") {
		    parent.location.reload();
		}
    </script>
</head>
<body>
	<div id="loginDiv">
		<form action="${ctxRest}/login" method="post" class="validate" id="form">
		<div class="loginpanel loginpanel-novcode">
			<div class="inner">
				<div class="panelbody">
					<div class="header"><h3>&nbsp;&nbsp;系统登录</h3></div>
					<div class="body">
						<div class="row">
							<div class="caption">用户名</div>
							<div class="content">
								<div class="textbox textbox-tip">
									<input type="text" id="username" name="username" autocomplete="off" required value="admin" />
								</div>
							</div>
						</div>
						<div class="row">
							<div class="caption">密　码</div>
							<div class="content">
								<div class="textbox textbox-tip">
									<input type="password" id="password" name="password" required value="1234" />
								</div>
							</div>
						</div>
						<div class="row row-vcode">
							<div class="caption">验证码</div>
							<div class="content">
								<div class="textbox vcode textbox-tip">
									<input id="randomCode" class="vcode" type="text" name="randomCode" maxlength="4" required>
								</div>
								<a href="javascript:void(0)" title="点击更换" class="vcodepic"><img src="${ctx}/public/kaptcha" title="点击更换" onclick="$(this).attr('src','${ctx}/public/kaptcha?id=' + (new Date()).getTime()); return false;"></a>
							</div>
						</div>
						<div class="row buttons ">
							<button type="submit" id="subtn" style="display:none;"></button>
							<a href="#" onclick="$('#subtn').click();" id="btn_login" class="loginbtn"></a><!-- <a href="#">忘记密码？</a> -->
						</div>
						<div class="row buttonss"><font color="red">${error}</font></div>
					</div>
				</div>
			</div>
		</div>
		</form>
	</div>
	<div id="bottom"></div>
</body>
</html>